package org.vectrics.recruiter.struts.cv;

import javax.servlet.jsp.JspException;

import org.vectrics.struts.Request;
import org.vectrics.struts.VectricsActionData;
import org.vectrics.struts.VectricsStrutsAction;

/**
 * Clase que implementa el editar de los skills
 * @author maguero
 */
public class ShowSkillsEditAction extends VectricsStrutsAction {

	private SkillForm form;
	
	public SkillForm getForm() {
		return form;
	}

	public void setForm(SkillForm form) {
		this.form = form;
	}
	
	@Override
	protected String doExecute(VectricsActionData actionData)
			throws JspException {

		log.info("ShowSkillsEditAction.doExecute() called");
		
		// Verifico que el id de persona no sea nulo
		Request request = actionData.getRequest();
	    if (request.getParameter("personId")==null) {
		   	log.error("personId is null");
	    	throw new JspException("personId is null");
	    }
		
		return "success";
	}
	
}
